1 <?php
2 $sql_footer=mysql_query(
"SELECT * FROM config");
3 $row_footer=mysql_fetch_assoc($sql_footer);?>
4 <?php
5 $sql_config_home=mysql_query(
"SELECT * FROM config_home");
6 $row_config_home=mysql_fetch_assoc($sql_config_home);?>
7 <?php

8 //META and FACEBOOK

9     $sql_config=mysql_query(
"SELECT * FROM config ");
10     $row_config=mysql_fetch_assoc($sql_config);

11 if
($_REQUEST['home']=='products' && $_REQUEST['views'] != "")
12 {
13     $sql_rv=mysql_query(
"SELECT a.*,b.code as currency_code,c.name as cat_name FROM products a left join currency b on a.currency = b.id left join cat c on c.id=a.cat where a.id='".$_REQUEST['views']."'");
14     $row_rv=mysql_fetch_assoc($sql_rv);
15     
16     $title_fb = preg_replace(
'/\s\s+/', ' ', trim(dwebvn(strip_tags($row_rv['name']),30)));
17     
if($title_fb == "") {$title_fb = $home['fb_title'];}
18     
if($row_rv['price'] > 0) {$title_fb = $title_fb ." - ".$home['giaban']." ". number_format($row_rv['price']).$row_rv['currency_code'];}
19     $description_fb = preg_replace(
'/\s\s+/', ' ', trim(dwebvn(strip_tags($row_rv['content']),30)));
20     
if($description_fb == "") {$description_fb = $home['fb_description'];}
21     
if(file_exists($row_rv['img1'])){$image_fb = $row_rv['img1'];}else{$image_fb = "upload/default/fb_product.png";}
22     list($width, $height) = getimagesize($image_fb);
23     
//if($width < 100 || $height < 100) {$image_fb = "upload/default/fb_product.png"; }
24     
25     $title_mt = $row_rv[
'cat_name']." | ".$row_config['title_pro'];
26     $description_mt = $row_rv[
'cat_name'].", ".preg_replace('/\s\s+/', ' ', trim(dwebvn(strip_tags($row_rv['name']),30))).", ".preg_replace('/\s\s+/', ' ', trim(dwebvn(strip_tags($row_rv['short']),30))).", ".$row_config['description_pro'];
27     $keyword_mt = $row_rv[
'name'].", ".str_replace(" ",", ",preg_replace('/\s\s+/', ' ', trim(str_replace(array('.', ',', '(', ')', '{','}','[',']')," ",$row_rv['name']." ".$row_rv['cat_name'])))).", ".$row_config['keyword_pro'];
28     
29 }elseif($_REQUEST[
'home']=='adv'&& $_REQUEST['id'] != "")
30 {
31     $sql_ng=mysql_query(
"SELECT a.*,b.code as currency_code,c.name as cat_name FROM avd a left join currency b on a.currency = b.id left join adv_cat c on c.id = a.adv_cat where a.id='".$_REQUEST['id']."'");
32     $row_ng=mysql_fetch_assoc($sql_ng);
33     
34     $title_fb = preg_replace(
'/\s\s+/', ' ', trim(dwebvn(strip_tags($row_ng['name']),30)));
35     
if($title_fb == "") {$title_fb = $home['fb_title'];}
36     
if($row_ng['price'] != "") {$title_fb = $title_fb ." - ".$home['giaban']." ". number_format($row_ng['price']).$row_ng['currency_code'];}
37     $description_fb = preg_replace(
'/\s\s+/', ' ', trim(dwebvn(strip_tags($row_ng['content']),30)));
38     
if($description_fb == "") {$description_fb = $home['fb_description'];}
39     
if(file_exists($row_ng['image'])){$image_fb = $row_ng['image'];}else{$image_fb = "upload/default/fb_adv.png";}
40     list($width, $height) = getimagesize($image_fb);
41     
//if($width < 100 || $height < 100) {$image_fb = "upload/default/fb_adv.png"; }
42     
43     $title_mt = $row_ng[
'cat_name']." | ".$row_config['title_adv'];
44     $description_mt = $row_ng[
'cat_name'].", ".preg_replace('/\s\s+/', ' ', trim(dwebvn(strip_tags($row_ng['name']),30))).", ".preg_replace('/\s\s+/', ' ', trim(dwebvn(strip_tags($row_ng['content']),30))).", ".$row_config['description_adv'];
45     $keyword_mt = $row_ng[
'name'].", ".str_replace(" ",", ",preg_replace('/\s\s+/', ' ', trim(str_replace(array('.', ',', '(', ')', '{','}','[',']')," ",$row_ng['name']." ".$row_ng['cat_name'])))).", ".$row_config['keyword_adv'];
46     
47 }elseif($_REQUEST[
'home']=='job'&& $_REQUEST['id'] != "")
48 {
49     $sql_jb=mysql_query(
"SELECT a.*,b.name as cat_name FROM job a left join job_cat b on b.id = a.job_cat where a.id='".$_REQUEST['id']."'");
50     $row_jb=mysql_fetch_assoc($sql_jb);
51     
52     $title_fb = preg_replace(
'/\s\s+/', ' ', trim(dwebvn(strip_tags($row_jb['name']),30)));
53     $title_fb = $title_fb.
" - ".preg_replace('/\s\s+/', ' ', trim(dwebvn(strip_tags($row_jb['congty']),30)));
54     
if($title_fb == "") {$title_fb = $home['fb_title'];}
55     $description_fb = preg_replace(
'/\s\s+/', ' ', trim(dwebvn(strip_tags($row_jb['content']),30)));
56     
if($description_fb == "") {$description_fb = $home['fb_description'];}
57     
if(file_exists($row_jb['image'])){$image_fb = $row_jb['image'];}else{$image_fb = "upload/default/fb_job.png";}
58     list($width, $height) = getimagesize($image_fb);
59     
//if($width < 100 || $height < 100) {$image_fb = "upload/default/fb_job.png"; }
60     
61     $title_mt = $row_jb[
'cat_name']." | ".$row_config['title_job'];
62     $description_mt = $row_jb[
'cat_name'].", ".preg_replace('/\s\s+/', ' ', trim(dwebvn(strip_tags($row_jb['name']),30))).", ".preg_replace('/\s\s+/', ' ', trim(dwebvn(strip_tags($row_jb['congty']),30))).", ".$row_config['description_job'];
63     $keyword_mt = $row_jb[
'name'].", ".str_replace(" ",", ",preg_replace('/\s\s+/', ' ', trim(str_replace(array('.', ',', '(', ')', '{','}','[',']')," ",$row_jb['name']." ".$row_jb['cat_name']. " ".$row_jb['congty'])))).", ".$row_config['keyword_job'];
64     
65 }elseif($_REQUEST[
'home']=='company'&& $_REQUEST['id'] != "")
66 {
67     $sql_cp=mysql_query(
"SELECT a.*,b.name as cat_name FROM company a left join company_cat b on a.company_cat = b.id where a.id='".$_REQUEST['id']."'");
68     $row_cp=mysql_fetch_assoc($sql_cp);
69     
70     $title_fb = preg_replace(
'/\s\s+/', ' ', trim(dwebvn(strip_tags($row_cp['name']),30)));
71     $title_fb = $title_fb.
" - ".preg_replace('/\s\s+/', ' ', trim(dwebvn(strip_tags($row_cp['cat_name']),30)));
72     
if($title_fb == "") {$title_fb = $home['fb_title'];}
73     $description_fb = preg_replace(
'/\s\s+/', ' ', trim(dwebvn(strip_tags($row_cp['content']),30)));
74     
if($description_fb == "") {$description_fb = $home['fb_description'];}
75     
if(file_exists($row_cp['image'])){$image_fb = $row_cp['image'];}else{$image_fb = "upload/default/fb_company.png";}
76     list($width, $height) = getimagesize($image_fb);
77     
//if($width < 100 || $height < 100) {$image_fb = "upload/default/fb_company.png"; }
78     
79     $title_mt = $row_cp[
'cat_name']." | ".$row_config['title_com'];
80     $description_mt = $row_cp[
'cat_name'].", ".preg_replace('/\s\s+/', ' ', trim(dwebvn(strip_tags($row_cp['name']),30))).", ".preg_replace('/\s\s+/', ' ', trim(dwebvn(strip_tags($row_cp['content']),30))).", ".$row_config['description_com'];
81     $keyword_mt = $row_cp[
'name'].", ".str_replace(" ",", ",preg_replace('/\s\s+/', ' ', trim(str_replace(array('.', ',', '(', ')', '{','}','[',']')," ",$row_cp['name']." ".$row_cp['cat_name'])))).", ".$row_config['keyword_com'];
82     
83 }elseif($_REQUEST[
'home']=='news' && $_REQUEST['id'] != "")
84 {
85     $sql_nw=mysql_query(
"SELECT a.*,b.name as cat_name FROM news a left join news_cat b on a.cat_id = b.id where a.id='".$_REQUEST['id']."'");
86     $row_nw=mysql_fetch_assoc($sql_nw);
87     
88     $title_fb = preg_replace(
'/\s\s+/', ' ', trim(dwebvn(strip_tags($row_nw['name']),30)));
89     
if($title_fb == "") {$title_fb = $home['fb_title'];}
90     $description_fb = preg_replace(
'/\s\s+/', ' ', trim(dwebvn(strip_tags($row_nw['short']),30)));
91     
if($description_fb == "") {$description_fb = preg_replace('/\s\s+/', ' ', trim(dwebvn(strip_tags($row_nw['content']),30)));}
92     
if($description_fb == "") {$description_fb = $home['fb_description'];}
93     
if(file_exists($row_nw['image'])){$image_fb = $row_nw['image'];}else{$image_fb = "upload/default/fb_news.png";}
94     list($width, $height) = getimagesize($image_fb);
95     
//if($width < 100 || $height < 100) {$image_fb = "upload/default/fb_news.png"; }
96     
97     $title_mt = $row_nw[
'cat_name']." | ".$row_config['title_news'];
98     $description_mt = $row_nw[
'cat_name'].", ".preg_replace('/\s\s+/', ' ', trim(dwebvn(strip_tags($row_nw['name']),30))).", ".preg_replace('/\s\s+/', ' ', trim(dwebvn(strip_tags($row_nw['short']),30))).", ".$row_config['description_news'];
99     $keyword_mt = str_replace(
" ",", ",preg_replace('/\s\s+/', ' ', trim(str_replace(array('.', ',', '(', ')', '{','}','[',']')," ",$row_nw['name']." ".$row_nw['cat_name'])))).", ".$row_config['keyword_news'];
100     
101 }elseif($_REQUEST[
'home']=='help'&& $_REQUEST['views'] != "")
102 {
103
104     $sql_hl=mysql_query(
"SELECT a.*,b.name as cat_name FROM help a left join help_cat b on b.id = a.cat_id where a.id='".$_REQUEST['views']."'");
105     $row_hl=mysql_fetch_assoc($sql_hl);
106     
107     $title_fb = preg_replace(
'/\s\s+/', ' ', trim(dwebvn(strip_tags($row_hl['name']),30)));
108     
if($title_fb == "") {$title_fb = $home['fb_title'];}
109     $description_fb = preg_replace(
'/\s\s+/', ' ', trim(dwebvn(strip_tags($row_hl['short']),30)));
110     
if($description_fb == "") {$description_fb = preg_replace('/\s\s+/', ' ', trim(dwebvn(strip_tags($row_hl['content']),30)));}
111     
if($description_fb == "") {$description_fb = $home['fb_description'];}
112     
if(file_exists($row_hl['image'])){$image_fb = $row_hl['image'];}else{$image_fb = "upload/default/fb_help.png";}
113     list($width, $height) = getimagesize($image_fb);
114     
//if($width < 100 || $height < 100) {$image_fb = "upload/default/fb_help.png"; }
115     
116     $title_mt = $row_hl[
'cat_name']." | ".$row_config['title_help'];
117     $description_mt = $row_hl[
'cat_name'].", ".preg_replace('/\s\s+/', ' ', trim(dwebvn(strip_tags($row_hl['name']),30))).", ".preg_replace('/\s\s+/', ' ', trim(dwebvn(strip_tags($row_hl['short']),30))).", ".$row_config['description_help'];
118     $keyword_mt = str_replace(
" ",", ",preg_replace('/\s\s+/', ' ', trim(str_replace(array('.', ',', '(', ')', '{','}','[',']')," ",$row_hl['name']." ".$row_hl['cat_name'])))).", ".$row_config['keyword_help'];
119     
120 }elseif($_REQUEST[
'home']=='category' && $_REQUEST['cat'] != "")
121 {
122     $sql_cat_pro=mysql_query(
"SELECT a.*,b.name as cat_name from cat a left join cat b on a.parent = b.id where a.id='".$_REQUEST['cat']."'");
123     $row_cat_pro=mysql_fetch_assoc($sql_cat_pro);
124     
125     
if($row_cat_pro['cat_name']!="") {$title_mt = $row_cat_pro['cat_name'];}
126     
if($title_mt !="") {$title_mt=$title_mt."| ".$row_config['title_pro'];} else{$title_mt = $row_config['title_pro'];}
127     
128     
if($row_cat_pro['cat_name']!="") {$description_mt = $row_cat_pro['cat_name'].", ".$row_cat_pro['name'];}else {$description_mt = $row_cat_pro['name'];}
129     
if($description_mt !=""){$description_mt=$description_mt.", ".$row_config['description_pro'];} else {$description_mt=$row_config['description_pro'];}
130     
131     
if($row_cat_pro['cat_name']!="") {$keyword_mt = $row_cat_pro['cat_name'].", ".$row_cat_pro['name'];}else {$keyword_mt = $row_cat_pro['name'];}
132     $keyword_mt = $row_cat_pro[
'name'].", ".str_replace(" ",", ",preg_replace('/\s\s+/', ' ', trim(str_replace(array('.', ',', '(', ')', '{','}','[',']')," ",$keyword_mt)))).", ".$row_config['keyword_pro'];
133     
134     $title_fb= $row_cat_pro[
'name']."| ".$title_mt;
135     $description_fb=$description_mt;
136     $image_fb=
"upload/default/fb_product.png";
137 }elseif($_REQUEST[
'home']=='adv' && $_REQUEST['cat'] != "" && $_REQUEST['act']=='cat' )
138 {
139     $sql_cat_pro=mysql_query(
"SELECT a.*,b.name as cat_name from adv_cat a left join adv_cat b on a.parent = b.id where a.id='".$_REQUEST['cat']."'");
140     $row_cat_pro=mysql_fetch_assoc($sql_cat_pro);
141     
142     
if($row_cat_pro['cat_name']!="") {$title_mt = $row_cat_pro['cat_name'];}
143     
if($title_mt !="") {$title_mt=$title_mt."| ".$row_config['title_adv'];} else{$title_mt = $row_config['title_adv'];}
144     
145     
if($row_cat_pro['cat_name']!="") {$description_mt = $row_cat_pro['cat_name'].", ".$row_cat_pro['name'];}else {$description_mt = $row_cat_pro['name'];}
146     
if($description_mt !=""){$description_mt=$description_mt.", ".$row_config['description_adv'];} else {$description_mt=$row_config['description_adv'];}
147     
148     
if($row_cat_pro['cat_name']!="") {$keyword_mt = $row_cat_pro['cat_name'].", ".$row_cat_pro['name'];}else {$keyword_mt = $row_cat_pro['name'];}
149     $keyword_mt = $row_cat_pro[
'name'].", ".str_replace(" ",", ",preg_replace('/\s\s+/', ' ', trim(str_replace(array('.', ',', '(', ')', '{','}','[',']')," ",$keyword_mt)))).", ".$row_config['keyword_adv'];
150     
151     $title_fb= $row_cat_pro[
'name']."| ".$title_mt;
152     $description_fb=$description_mt;
153     $image_fb=
"upload/default/fb_adv.png";
154 }elseif($_REQUEST[
'home']=='job' && $_REQUEST['cat'] != "" && $_REQUEST['act']=='cat' )
155 {
156     $sql_cat_pro=mysql_query(
"SELECT a.*,b.name as cat_name from job_cat a left join job_cat b on a.parent = b.id where a.id='".$_REQUEST['cat']."'");
157     $row_cat_pro=mysql_fetch_assoc($sql_cat_pro);
158     
159     
if($row_cat_pro['cat_name']!="") {$title_mt = $row_cat_pro['cat_name'];}
160     
if($title_mt !="") {$title_mt=$title_mt."| ".$row_config['title_job'];} else{$title_mt = $row_config['title_job'];}
161     
162     
if($row_cat_pro['cat_name']!="") {$description_mt = $row_cat_pro['cat_name'].", ".$row_cat_pro['name'];}else {$description_mt = $row_cat_pro['name'];}
163     
if($description_mt !=""){$description_mt=$description_mt.", ".$row_config['description_job'];} else {$description_mt=$row_config['description_job'];}
164     
165     
if($row_cat_pro['cat_name']!="") {$keyword_mt = $row_cat_pro['cat_name'].", ".$row_cat_pro['name'];}else {$keyword_mt = $row_cat_pro['name'];}
166     $keyword_mt = $row_cat_pro[
'name'].", ".str_replace(" ",", ",preg_replace('/\s\s+/', ' ', trim(str_replace(array('.', ',', '(', ')', '{','}','[',']')," ",$keyword_mt)))).", ".$row_config['keyword_job'];
167     
168     $title_fb= $row_cat_pro[
'name']."| ".$title_mt;
169     $description_fb=$description_mt;
170     $image_fb=
"upload/default/fb_job.png";
171 }elseif($_REQUEST[
'home']=='company' && $_REQUEST['cat'] != "" && $_REQUEST['act']=='cat' )
172 {
173     $sql_cat_pro=mysql_query(
"SELECT a.*,b.name as cat_name from company_cat a left join company_cat b on a.parent = b.id where a.id='".$_REQUEST['cat']."'");
174     $row_cat_pro=mysql_fetch_assoc($sql_cat_pro);
175     
176     
if($row_cat_pro['cat_name']!="") {$title_mt = $row_cat_pro['cat_name'];}
177     
if($title_mt !="") {$title_mt=$title_mt."| ".$row_config['title_com'];} else{$title_mt = $row_config['title_com'];}
178     
179     
if($row_cat_pro['cat_name']!="") {$description_mt = $row_cat_pro['cat_name'].", ".$row_cat_pro['name'];}else {$description_mt = $row_cat_pro['name'];}
180     
if($description_mt !=""){$description_mt=$description_mt.", ".$row_config['description_com'];} else {$description_mt=$row_config['description_com'];}
181     
182     
if($row_cat_pro['cat_name']!="") {$keyword_mt = $row_cat_pro['cat_name'].", ".$row_cat_pro['name'];}else {$keyword_mt = $row_cat_pro['name'];}
183     $keyword_mt = $row_cat_pro[
'name'].", ".str_replace(" ",", ",preg_replace('/\s\s+/', ' ', trim(str_replace(array('.', ',', '(', ')', '{','}','[',']')," ",$keyword_mt)))).", ".$row_config['keyword_com'];
184     
185     $title_fb= $row_cat_pro[
'name']."| ".$title_mt;
186     $description_fb=$description_mt;
187     $image_fb=
"upload/default/fb_company.png";
188 }elseif($_REQUEST[
'home']=='news' && $_REQUEST['cat'] != "" && $_REQUEST['act']=='cat' )
189 {
190     $sql_cat_pro=mysql_query(
"SELECT a.*,b.name as cat_name from news_cat a left join news_cat b on a.parent = b.id where a.id='".$_REQUEST['cat']."'");
191     $row_cat_pro=mysql_fetch_assoc($sql_cat_pro);
192     
193     
if($row_cat_pro['cat_name']!="") {$title_mt = $row_cat_pro['cat_name'];}
194     
if($title_mt !="") {$title_mt=$title_mt."| ".$row_config['title_news'];} else{$title_mt = $row_config['title_news'];}
195     
196     
if($row_cat_pro['cat_name']!="") {$description_mt = $row_cat_pro['cat_name'].", ".$row_cat_pro['name'];}else {$description_mt = $row_cat_pro['name'];}
197     
if($description_mt !=""){$description_mt=$description_mt.", ".$row_config['description_news'];} else {$description_mt=$row_config['description_news'];}
198     
199     
if($row_cat_pro['cat_name']!="") {$keyword_mt = $row_cat_pro['cat_name'].", ".$row_cat_pro['name'];}else {$keyword_mt = $row_cat_pro['name'];}
200     $keyword_mt = $row_cat_pro[
'name'].", ".str_replace(" ",", ",preg_replace('/\s\s+/', ' ', trim(str_replace(array('.', ',', '(', ')', '{','}','[',']')," ",$keyword_mt)))).", ".$row_config['keyword_news'];
201     
202     $title_fb= $row_cat_pro[
'name']."| ".$title_mt;
203     $description_fb=$description_mt;
204     $image_fb=
"upload/default/fb_news.png";
205 }elseif($_REQUEST[
'home']=='help' && $_REQUEST['cat'] != "" && $_REQUEST['act']=='cat' )
206 {
207     $sql_cat_pro=mysql_query(
"SELECT a.*,b.name as cat_name from help_cat a left join help_cat b on a.parent = b.id where a.id='".$_REQUEST['cat']."'");
208     $row_cat_pro=mysql_fetch_assoc($sql_cat_pro);
209     
210     
if($row_cat_pro['cat_name']!="") {$title_mt = $row_cat_pro['cat_name'];}
211     
if($title_mt !="") {$title_mt=$title_mt."| ".$row_config['title_help'];} else{$title_mt = $row_config['title_help'];}
212     
213     
if($row_cat_pro['cat_name']!="") {$description_mt = $row_cat_pro['cat_name'].", ".$row_cat_pro['name'];}else {$description_mt = $row_cat_pro['name'];}
214     
if($description_mt !=""){$description_mt=$description_mt.", ".$row_config['description_help'];} else {$description_mt=$row_config['description_help'];}
215     
216     
if($row_cat_pro['cat_name']!="") {$keyword_mt = $row_cat_pro['cat_name'].", ".$row_cat_pro['name'];}else {$keyword_mt = $row_cat_pro['name'];}
217     $keyword_mt = $row_cat_pro[
'name'].", ".str_replace(" ",", ",preg_replace('/\s\s+/', ' ', trim(str_replace(array('.', ',', '(', ')', '{','}','[',']')," ",$keyword_mt)))).", ".$row_config['keyword_help'];
218     
219     $title_fb= $row_cat_pro[
'name']."| ".$title_mt;
220     $description_fb=$description_mt;
221     $image_fb=
"upload/default/fb_help.png";
222 }

223 else

224 {
225     $title_fb = $home[
'fb_title'];
226     $description_fb = $home[
'fb_description'];
227     $image_fb=
"upload/default/fb_default.png";
228     
229     $title_mt = $row_config[
'title'];
230     $description_mt = $row_config[
'description'];
231     $keyword_mt=$row_config[
'keyword'];
232 }
233 ?>
234 <!DOCTYPE html>
235 <html manifest=
"">
236 <head>
237 <meta http-equiv=
"Content-Type" content="text/html; charset=UTF-8">
238 <link rel=
"canonical" href=""/>
239 <meta charset=
"utf-8">
240 <meta name=
"viewport" content="initial-scale=1, maximum-scale=1.0, minimum-scale=1.0">
241 <meta name=
"format-detection" content="telephone=yes">
242 <meta name=
"apple-mobile-web-app-capable" content="yes">
243 <meta name=
"apple-mobile-web-app-status-bar-style" content="black">
244 <
base href="https://sendo.vn"/>
245 <link rel=
"stylesheet" type="text/css" href="/mobile_home/template/css/style_all_v3.css">
246 <script type=
"text/javascript" src="/mobile_home/template/js/js_v3.js"></script>
247  
248     <script src=
"/mobile_home/template/js/select2.js"></script>
249     <link rel=
"stylesheet" href="/style/css.css">
250     <script>
251         $(document).ready(function() {
252             $(
"#states").select2();
253         });
254     </script>
255 <script src=
"mobile_home/template/js/jquery.lazyload.js" type="text/javascript"></script>
256     <!-- Add fancyBox main JS and CSS files -->
257      
258      <!-- Add fancyBox main JS and CSS files -->
259      
260  
261   <link rel=
"stylesheet" href="/quantri/css/font-awesome.min.css">
262   <!-- Ionicons -->
263   <link rel=
"stylesheet" href="/quantri/css/ionicons.min.css">
264      
265     
266      <meta http-equiv=
"content-language" content="la" />
267     <META name=
"title" content="<?php include("system/model/title.php"); echo " | ". $title_mt;?>">
268     <meta name=
"description" content="<?php echo $description_mt;?> "/>
269     <meta name=
"keywords" content="<?php echo $keyword_mt;?> "/>
270     <META name=
"robots" content="noodp,index,follow">
271     <META name=
"revisit-after content"="1 days">
272     <meta name=
"copyright" content="Copyright (C) DNS Co.,Ltd" />
273     <meta name=
"geo.placename" content="vietnam" />
274     <meta name=
"geo.position" content="19.85627;102.495496" />
275     <meta name=
"geo.region" content="VI" />
276     <meta name=
"google-translate-customization" content="782891b9d90b25e1-87a62fc0d680bc2a-g1c26503bbd28e54c-e"></meta>
277     <meta name=
"google-site-verification" content="cAvIF8_ffkn3qz5E38vNiYNw3xytW3a2973zErL27sw" />
278     <meta property=
"og:title" content="<?php echo $title_fb; ?>" />
279     <meta property=
"og:description" content="<?php echo $description_fb; ?>" />
280     <meta property=
"og:image" content="<?php echo "http://www.".$home['domain']."/".$image_fb;?>"/>
281     <meta property=
"og:url" content="<?php echo "http://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];?>" />
282 <meta name=
"revisit-after" content="1 days">
283 <title><?php include(
"mobile_home/system/model/title.php");echo " | ". $title_mt;?></title>
284 </head>
285  
286 <div id=
"fb-root"></div>
287
288 <body cz-shortcut-listen=
"true">
289 <!-- popup login -->
290
291     <!--end popup login-->
292 <div id=
"home">
293 <div id=
"home_content">
294 <?php include(
"mobile_home/system/home/menu_left.php");?>
295 <?php include(
"mobile_home/system/home/menu_right.php");?>
296 <div id=
"main_container" class="index">
297 <div id=
"header_bar">
298  
299
300
301
302 <table cellpadding=
"0" cellspacing="0" border="0" border-spacing="0" width="100%"><tbody>
303 <tr>
304 <td width=
"50" class="menu_nav"><span class="left_nav" onclick="toggleMenu();trackEvent(&#39;Menu trái&#39;, &#39;Click&#39;, &#39;&#39;);" data-ptsp-kpi-action-name="Navigation" data-ptsp-kpi-action-label="Menu trái"><i class="vcon-menu"> </i>
305 <span
class="nav_text">Danh mục</span></span>
306 </td>
307 <td
class="center_nav">
308 <table
class="table_tab_web" cellpadding="0" cellspacing="0" border="0" border-spacing="0" width="100%"><tbody>
309 <tr>
310 <td ><a href=
"./index.html"><span>Trang chủ</span></a></td>
311
312
313 <?php
if($_SESSION['mem']=='')
314 {?>
315 <td > <a
class="login-window" id="myBtn" ><span>Đăng nhập</span></a></td>
316 <td ><a onclick=
"document.getElementById('myModal_reg').style.display='block'" ><span>Đăng ký</span></a></td>
317 <?}
else{?>
318 <?}?>
319
320
321  
322
323
324
325 </tr></tbody></table>
326 </td>
327 <td align=
"right" width="50" class="menu_nav"><span class="right_nav" onclick="toggleRightMenu()" data-ptsp-kpi-action-name="Navigation" data-ptsp-kpi-action-label="Menu phải"><i class="vcon-setting"> </i><span class="nav_text">Thông tin</span>
328 </span></td>
329 </tr></tbody></table>
330 </div>
331 <?php include(
"mobile_home/system/home/search_box.php");?>
332 <?php
if($_REQUEST['home']=='')
333 {?>
334 <script type=
"text/javascript">var module= "product";var catParentId= 0;var catHasChild= 0;var user_logged= 0;var con_root_path= "/home/";var con_ajax_path= "/ajax/";var fs_imagepath= "http://static.vatgia.com/cjs/mobile20150203/v1/images/";var fs_redirect= "L2hvbWUv";</script>
335  
336 <script>$(document).ready(function(){
var intCheck=setInterval(function(){if($('#banner_top_360x110').html() != ""){$('#banner_top_360x110 a').removeAttr('target');clearInterval(intCheck);}},100);});</script>
337 <!--div
class="home_category">
338 <?php
339 $sql=mysql_query(
"SELECT id,name FROM cat where status=0 and parent=17");
340 while
($row=mysql_fetch_array($sql))
341 {
342     ?>
343 <div
class="home_cat_item">
344 <a href=
"./<?php echo doidau(mb_strtolower($row['name'],"UTF8"));?>-ct-<?php echo $row['id'];?>.html" title="<?php echo $row['name'];?>" class="hom_cat_img" data-ptsp-kpi-action-name="Trang chủ" data-ptsp-kpi-action-label="Danh mục gợi ý">
345 <div
class="home_img_bg">
346 <div
class="home_img_inner"><img alt="<?php echo $row['name'];?>" src="<?php echo $row['image'];?>" class="load_img"/></div>
347 <span
class="home_cat_name"><?php echo $row['name'];?></span>
348 </div>
349 </a>
350 </div>
351 <?}?>
352 <div style=
"clear: both;"></div>
353 </div-->
354 <div style=
"clear: both;"></div>
355 <div style=
"clear: both;"></div>
356 <?php include(
"mobile_home/system/home/tab_pro_home.php");?>
357  
358 <?}
else{?>
359 <?php include(
"mobile_home/system/model/frame_mem.php");?>
360 <?}?>
361 <div
class="v_div"></div>
362 <?php include(
"mobile_home/system/home/footer.php");?>
363 <div
class="overlay" onclick="closeAllMenu()"></div>
364  
365 <script type=
"text/javascript">
366 $(window).load(function() {
367   $(
'img').each(function() {
368     
if (!this.complete || typeof this.naturalWidth == "undefined" || this.naturalWidth == 0) {
369       
// image was broken, replace with your new image
370       
this.src = '/images/no_logo.jpg';
371     }
372   });
373 });
374 </script>
375
376 <script>
377   (function(i,s,o,g,r,a,m){i[
'GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
378   (i[r].q=i[r].q||[]).push(arguments)},i[r].l=
1*new Date();a=s.createElement(o),
379   m=s.getElementsByTagName(o)[
0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
380   })(window,document,
'script','//www.google-analytics.com/analytics.js','ga');
381
382   ga(
'create', 'UA-59479955-2', 'auto');
383   ga(
'send', 'pageview');
384
385 </script>
386
387 </body>
388
389 </html>
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418 <style>

419 /* The Modal (background) */

420 .modal {
421     display: none;
/* Hidden by default */
422     position:
fixed; /* Stay in place */
423     z-index:
9999; /* Sit on top */
424     padding-top: 30px;
/* Location of the box */
425     left:
0;
426     top:
0;
427     width:
100%; /* Full width */
428     height:
100%; /* Full height */
429     overflow: auto;
/* Enable scroll if needed */
430     background-color: rgb(
0,0,0); /* Fallback color */
431     background-color: rgba(
0,0,0,0.4); /* Black w/ opacity */
432 }

433
434 /* Modal Content */

435 .modal-content {
436     position: relative;
437     background-color: #fefefe;
438     margin: auto;
439     padding:
0;
440     border: 1px solid #
888;
441     width:
17%;
442     box-shadow:
0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
443     -webkit-animation-name: animatetop;
444     -webkit-animation-duration:
0.4s;
445     animation-name: animatetop;
446     animation-duration:
0.4s
447 }

448
449 /* Add Animation */

450 @-webkit-keyframes animatetop {
451     
from {top:-300px; opacity:0}
452     to {top:
0; opacity:1}
453 }
454
455 @keyframes animatetop {
456     
from {top:-300px; opacity:0}
457     to {top:
0; opacity:1}
458 }

459
460 /* The Close Button */

461 .close {
462     
float: right;
463     font-size: 28px;
464     font-weight: bold;
465     margin-top: -29px;
466 }
467
468 .close:hover,
469 .close:focus {
470     color: #
000;
471     text-decoration: none;
472     cursor: pointer;
473 }
474
475 .modal-header {
476     padding: 2px 16px;
477     background-color: #5cb85c;
478     color: white;
479 }
480
481 .modal-body {padding: 2px 16px;}
482
483 .modal-footer {
484     padding: 2px 16px;
485     background-color: #5cb85c;
486     color: white;
487 }
488 </style>
489
490 <script src=
"/dangnhap/js/jquery.min.js"></script>
491 <script src=
"/dangnhap/js/jquery.ui.shake.js"></script>
492 <script>
493             $(document).ready(function() {
494             
495             $(
'#login').click(function()
496             {
497             
var username=$("#username").val();
498             
var password=$("#password").val();
499             
var dataString = 'username='+username+'&password='+password;
500             
if($.trim(username).length>0 && $.trim(password).length>0)
501             {
502             
503  
504             $.ajax({
505             type:
"POST",
506             url:
"/dangnhap/ajaxLogin.php",
507             data: dataString,
508             cache:
false,
509             beforeSend: function(){ $(
"#login").val('...');},
510             success: function(data){
511             
if(data)
512             {
513             location.reload();
514             }
515             
else
516             {
517              $(
'#box').shake();
518              $(
"#login").val('Đăng nhập')
519              $(
"#error1").html("<span >Tên đăng nhập hoặc mật khẩu không chính xác! ");
520             }
521             }
522             });
523             
524             }
525             
return false;
526             });
527             
528                 
529             });
530         </script>
531 </head>
532 <body>
533
534
535
536 <!-- The Modal -->
537 <div id=
"myModal" class="modal">
538
539  
540
541 <form action=
"" method="post">
542         <div
class="wrapper" id="wrapper-content">
543             <div id=
"step1" class="stepReg">
544                 <div
class="stepReg-title">
545                     
546                     <h1>Đăng nhập</h1>
547               <a
class="close" onclick="document.getElementById('myModal').style.display='none'" >X</a>
548                                 
549                 </div>
550                 <div
class="stepReg-form">
551                     <table
class="tableSimple" cellpadding="1" cellspacing="0">
552                         <tbody><tr style=
"">
553                             <td
class="tdTextBox" colspan="2">
554                                 <input name=
"username" type="text" value="<? echo $_REQUEST['username'];?>" maxlength="100" id="username" placeholder="Tên tài khoản">
555                             </td>
556                         </tr>
557                                               
558                                                                         <span id=
"error1" style=" color: #fff; background: red; "></span>
559                             
560                         <tr>
561                             <td
class="tdTextBox" colspan="2">
562                                 <input name=
"password" type="password" value="<?php echo $password;?>" maxlength="100" id="password" placeholder="Mật khẩu">
563                             </td>
564                         </tr>
565                                                                          
566                          
567                          
568                              
569                       
570                         
571                          
572                         <tr>
573                             <td
class="td-register-button" colspan="2">
574                                 <input type=
"submit" id="login" value="Đăng Nhập"/>
575 <span
class="msg"></span>
576
577                             </td>
578                             
579                         </tr>
580                     </tbody></table>
581             <a href=
""> <span style=" float: left; padding-top: 16px; font-size: 12px; color: blue; ">Quên mật khẩu </span></a>
582              <a onclick=
"document.getElementById('myModal_reg').style.display='block'" > <span style=" float: right; padding-top: 16px; font-size: 14px; color: red; ">Đăng ký tài khoản? </span></a>
583              </div>
584             </div>
585         </div>
586 </form>
587 </div>
588
589
590 <div id=
"myModal_reg" class="modal">
591  
592 <script type=
"text/javascript">
593 $(document).ready(function() {
594     $(
"#username1").keyup(function (e) {
595     
596         
//removes spaces from username
597         $(
this).val($(this).val().replace(/\s/g, ''));
598         
599         
var username = $(this).val();
600         
if(username.length < 4){$("#user-result").html('');return;}
601         
602         
if(username.length >= 4){
603             $(
"#user-result").html('<img src="/dangky/imgs/ajax-loader.gif" />');
604             $.post(
'/dangky/check_username.php', {'username':username}, function(data) {
605               $(
"#user-result").html(data);
606             });
607         }
608     });
609 });
610 </script>
611
612  <script language=
"javascript" type="text/javascript">
613 function check()
614 {

615
616 if
(document.cartform.txtUser.value =="")
617 {
618 alert(
"Bạn chưa nhập tên tài khoản");
619 document.cartform.txtUser.focus();

620 return
false;
621 }

622
623 if
(document.cartform.txtPwd.value =="")
624 {
625 alert(
"Bạn chưa nhập mật khẩu");
626 document.cartform.txtPwd.focus();

627 return
false;
628 }

629
630 if
(document.cartform.txtPwd2.value =="")
631 {
632 alert(
"Bạn chưa nhập lại mật khẩu");
633 document.cartform.txtPwd2.focus();

634 return
false;
635 }

636
637 if
(document.cartform.txtPwd2.value != document.cartform.txtPwd.value)
638 {
639 alert(
"Nhập lại mật khẩu không trùng nhau");
640 document.cartform.txtPwd2.focus();

641 return
false;
642 }
643
644
645
646
647
648
649
650  location.reload();

651 return
true;
652
653 }
654 </script>
655  
656   
657 <?
658 function check_user($user) {

659 if
(strlen($user)<6||strlen($user)>=18) return false;
660 if
(eregi("^[A-Z0-9]+$", $user)) return true;
661 return
false;
662 }

663 if
(isset($_POST['butSubreg'])) {
664     $user=$_POST[
'txtUser'];
665     $pass = ( md5(md5(md5( md5(md5(md5( addslashes($_POST[
'txtPwd']))))))));
666     $pass2 = ( md5(md5(md5( md5(md5(md5( addslashes($_POST[
'txtPwd2']))))))));
667     $sql =
"select * from thanhvien where user='".$user."' limit 1";
668     $bang=mysql_query($sql);
669     $xuat=mysql_fetch_array($bang);
670     $level=$xuat[
'level_shop'];
671     $_REQUEST[
'username']=$user;
672         
if($user==$xuat['user'] )
673     {
674         $err=
"Tên tài khoản đã có người sử dụng";
675         }
676         elseif(!check_user($user))
677         {
678             $err=
"Tên đăng nhập chỉ gồm các ký tự số 0-9 và A-Z không dấu viết liền và lớn hơn 6 ký tự";
679         }
680
681         elseif($pass!==$pass2)
682         {
683             $err2=
"Mật khẩu không trùng nhau";
684         }
685  
686
687
688      

689 else

690     {
691         $date=date(
"d-m-Y");
692      $sql2=
"INSERT INTO thanhvien(user, pass, re_time)values('$user','$pass','$date')";
693    $result=mysql_query($sql2);
694         $quyen=$level;
695         $log=$user;
696         $_SESSION[
'mem']=$user;
697         
698         $_SESSION[
'level']=$level;
699         echo
"<script>
700         window.alert('Đăng ký thành viên thành công,hệ thống tự động đăng nhập')
701         window.location='http:
//".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]."'</script>";
702 }
703      
704         
705 }
706 ?>
707
708 <form
class="form" method="post" action="" id="form1" name="cartform" onsubmit="return check()">
709  
710  
711         
712         <div
class="wrapper" id="wrapper-content">
713             <div id=
"step1" class="stepReg">
714                 <div
class="stepReg-title">
715                     
716                     <h1 style=
" color: red; ">Đăng ký tài khoản</h1>
717              <a
class="close" onclick="document.getElementById('myModal_reg').style.display='none'" >X</a>
718                                 
719                 </div>
720                 <div
class="stepReg-form">
721                     <table
class="tableSimple" cellpadding="1" cellspacing="0">
722                         <tbody><tr style=
"">
723                             <td
class="tdTextBox" colspan="2">
724                                 <input name=
"txtUser" type="text" value="<? echo $_REQUEST['username'];?>" maxlength="100" id="username1" placeholder="Tên tài khoản">
725                                     <span id=
"user-result"></span>
726                             </td>
727                         </tr>
728                          
729  
730
731                                               
732                                                                         <span style=
" color: #fff; background: red; "> <?
733 if
($err!='')
734 {
735     echo $err;
736 }
737 ?></span>
738                             
739                         <tr>
740                             <td
class="tdTextBox" colspan="2">
741                                 <input name=
"txtPwd" type="password" value="<?php echo $password;?>" maxlength="100" id="txtName" placeholder="Mật khẩu">
742                             </td>
743                         </tr>
744                                                                         <span style=
" color: #fff; background: red; "> <?
745 if
($err2!='')
746 {
747     echo $err2;
748 }
749 ?></span>
750                         <tr>
751                             <td
class="tdTextBox" colspan="2">
752                                 <input name=
"txtPwd2" type="password" value="<?php echo $password;?>" maxlength="255" id="txtRegEmail" placeholder="Nhập lại mật khẩu">
753                             </td>
754                         </tr>
755                        
756                        
757                          
758                          
759                              
760                       
761                         
762                          
763                         <tr>
764                             <td
class="td-register-button" colspan="2">
765                                 <input style=
" background: red; " name="butSubreg" type="submit" id="reg-button" href="javascript:" onclick="return CheckRegFormSimple();" value="Đăng ký"/>
766                             </td>
767                         </tr>
768                     </tbody></table>
769                 </div>
770             </div>
771         </div>
772         
773        
774         
775
776  
777  
778 </form>
779  
780 </div>
781
782
783
784 <div id=
"myModal_vidiemlua" class="modal">
785 <?
786  $ffffff=mysql_query(
"SELECT * FROM thanhvien where user='".$_SESSION['mem']."' ");
787 $check=mysql_fetch_assoc($ffffff);
788
789 $diemluahienco = $check[
'diemlua_mem']
790 ?>
791  
792 <form
class="form" method="post" action="" id="form1">
793  
794  
795         
796         <div
class="wrapper" id="wrapper-content" style="
797     
float: right;
798         width: 244px;
799 "
>
800             <div id=
"step1" class="stepReg">
801                 <div
class="stepReg-title">
802                     
803                     <h1>Ví Điểm Lửa</h1>
804               <a
class="close" onclick="document.getElementById('myModal_vidiemlua').style.display='none'" >X</a>
805                                 
806                 </div>
807                 <div
class="stepReg-form">
808                     <table
class="tableSimple" cellpadding="1" cellspacing="0">
809                         <tbody>
810                          
811                        
812                        
813                          Điểm Lửa hiện có: <b style=
" color: red; font-size: 18px; "><? echo number_format($diemluahienco);?></b> điểm
814                          <br>
815                              <a onclick=
"return confirm('Không hỗ trợ xem chi tiết trên điện thoại.Khách hàng vui lòng truy cập bằng Máy vi tính hoặc Laptop để xem chi tiết điểm Lửa');" style="background: #F44336; padding: 1px; color: #fff; display: inline-block; ">Xem Chi Tiết</a>
816                       
817                         
818                          
819                          
820                     </tbody></table>
821                 </div>
822             </div>
823         </div>
824         
825        
826         
827
828  
829  
830 </form>
831 </div>
832 <script>

833 // Get the modal

834 var
modal = document.getElementById('myModal');
835
836 // Get the button that opens the modal

837 var
btn = document.getElementById("myBtn");
838
839 // Get the <span> element that closes the modal

840 var
span = document.getElementsByClassName("close")[0];
841
842 // When the user clicks the button, open the modal

843 btn.onclick = function() {
844     modal.style.display =
"block";
845 }

846
847 // When the user clicks
on <span> (x), close the modal
848 span.onclick = function() {
849     modal.style.display =
"none";
850 }

851
852 // When the user clicks anywhere outside of the modal, close it

853 window.onclick = function(
event) {
854     
if (event.target == modal) {
855         modal.style.display =
"none";
856     }
857 }
858 </script>
859
860   
861  
862  



Full source code website bán hàng thương mại điện tử gần giống shopee 468.258 lượt xem

Gõ tìm kiếm nhanh...